import React from 'react'
import { connect } from 'react-redux'
import { getUserList } from '../../redux/chatuser.redux'
import Usercard from '../usercard/usercard'

@connect(
  state => state.chatuser,
  { getUserList }
)
class Boss extends React.Component {
  constructor () {
    super()
    this.state = {
      data: []
    }
  }
  componentDidMount () {
    this.props.getUserList('genius')
  }
  render () {
    // console.log(this.props.userList)
    return <Usercard userList={this.props.userList}/>
  }
}

export default Boss